package com.qiku.feign;

import com.qiku.Student;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(name = "Student")
public interface StudentFeign {



    @RequestMapping("/stu/query")
    public List<Student> findAll();


    @RequestMapping("/stu/findById/{id}")
    public Student findById(@PathVariable Integer id);


    @PostMapping("/stu/add")
    public void addstu(@RequestBody Student student);

    @RequestMapping("/stu/update")
    public void UpdateStu(Student student);


    @RequestMapping("/stu/delete/{id}")
    public void deleteStu(@PathVariable Integer id);



    @GetMapping("/port")
    public String getPort();


}
